import { onMounted, ref, computed } from "vue";

export default function () {
  let sum = ref(0);
  function add() {
    sum.value += 1;
  }

  let bigSumData = computed(() => {
    return sum.value * 10;
  });
  onMounted(() => {
    add();
  });

  return {
    sum,
    bigSumData,
    add,
  };
}
